﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ServBus.ListForm2010.Utility
{
    public class NameSpaceConstants
    {
        public const string Title_DefaultList = "DefaultXsnList";
        public const string Name_FormLib = "FormLib";
        public const string PATH_INPUTFORM_AXSC = "~/_controltemplates/InputFormSection.ascx";
        public const string My_Namespace = "xmlns:my=\"http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-12-17T09:42:45\"";
        public static string Des_Root_Path = @"c:\TempXsnFiles\";
        public static string TemplateRootPath = string.Empty;
        public const string XSDNameSpaceValue = "http://www.w3.org/2001/XMLSchema";
        public const string XSDNameSpaceDefine = "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"";
        public const string XSFNameSpaceDefine = "xmlns:xsf=\"http://schemas.microsoft.com/office/infopath/2003/solutionDefinition\"";
        public const string XSFNameSpaceValue = "http://schemas.microsoft.com/office/infopath/2003/solutionDefinition";
        public const string MANameSpaceDefine = "xmlns:ma=\"http://schemas.microsoft.com/office/2009/metadata/properties/metaAttributes\"";
        public const string MANameSpaceValue = "http://schemas.microsoft.com/office/2009/metadata/properties/metaAttributes";
        public const string XSDNamespaceValuePlaceHolder = "shemaxsdnamespace";
        public const string XDNamespaceValue = "http://schemas.microsoft.com/office/infopath/2003";
        public const string SchemaTimePlaceHolder = "schematime";
        public const string Xmlns_My_And_Xsd_Def = "xmlns:my=\"http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-12-17T09:42:45\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"";
        public const string MYNamespaceValue = "http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-06-30T11:22:21";

        //TO DO
        public const string LookUpSchemaName = "schema1";

        public const string Xld_Namespace = "http://www.w3.org/2001/XMLSchema";

        public const string Schema_FileTemplate_Name = "SchemaTemplate.txt";
        public const string LookupFrameFileDef = "<xsf:file name=\"{0}\">"
                + "<xsf:fileProperties>"
                + "<xsf:property name=\"namespace\" type=\"string\" value=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\"></xsf:property>"
                + "<xsf:property name=\"dataObject\" type=\"string\" value=\"{1}\"></xsf:property>"
                + "<xsf:property name=\"rootElement\" type=\"string\" value=\"myFields\"></xsf:property>"
                + "<xsf:property name=\"useOnDemandAlgorithm\" type=\"string\" value=\"yes\"></xsf:property>"
                + "</xsf:fileProperties>"
                + "</xsf:file>";
        public const string LookupDataFilesFileDef = "<xsf:file name=\"{0}\">"
                + "<xsf:fileProperties>"
                + "<xsf:property name=\"namespace\" type=\"string\" value=\"http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields\"></xsf:property>"
                + "<xsf:property name=\"dataObject\" type=\"string\" value=\"{1}\"></xsf:property>"
                + "</xsf:fileProperties>"
                + "</xsf:file>";

        public const string LookupTypesFileDef = "<xsf:file name=\"{0}\">"
                + "<xsf:fileProperties>"
                + "<xsf:property name=\"namespace\" type=\"string\" value=\"http://schemas.microsoft.com/office/2009/documentManagement/types\"></xsf:property>"
                + "<xsf:property name=\"dataObject\" type=\"string\" value=\"{1}\"></xsf:property>"
                + "</xsf:fileProperties>"
                + "</xsf:file>";

        public const string LookupControlsFileDef = "<xsf:file name=\"{0}\">"
                + "<xsf:fileProperties>"
                + "<xsf:property name=\"namespace\" type=\"string\" value=\"http://schemas.microsoft.com/office/infopath/2007/PartnerControls\"></xsf:property>"
                + "<xsf:property name=\"dataObject\" type=\"string\" value=\"{1}\"></xsf:property>"
                + "</xsf:fileProperties>"
                + "</xsf:file>";

        public const string LookupTextTypeText = "<xsd:element name=\"{0}\" ma:displayName=\"{1}\" ma:readOnly=\"{2}\" ma:allowDeletion=\"true\" " + "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"" + " xmlns:ma=\"http://schemas.microsoft.com/office/2009/metadata/properties/metaAttributes\"" + ">" +
                                                 "<xsd:simpleType xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">" +
                                                 "<xsd:restriction base=\"dms:TextType\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><xsd:maxLength value=\"255\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"/>" +
                                                 "<xsd:minLength value=\"1\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"/>" +
                                                 "</xsd:restriction>" +
                                                 "</xsd:simpleType>" +
                                                 "</xsd:element>";


        public const string TextBox_View_Text = "<tr style=\"MIN-HEIGHT: 31px\" class=\"xdTableOffsetRow\">"
                                                + "<td class=\"xdTableOffsetCellLabel\" style=\"PADDING-BOTTOM: 4px;  PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                                + "<h4>"
                                                + "<span class=\"xdlabel\">{1}</span>"
                                                + "</h4>"
                                                + "</td>"
                                                + "<td class=\"xdTableOffsetCellComponent\" style=\"PADDING-BOTTOM: 4px; PADDING-LEFT: 5px;  VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                                + "<span class=\"xdlabel\"></span>"
                                                + "<font style=\"BACKGROUND-COLOR: #ffffff\"></font>"
                                                + "<span hideFocus=\"1\" class=\"xdTextBox\" title=\"\" tabIndex=\"0\" xd:xctname=\"PlainText\" xd:CtrlId=\"CTRL1\" xd:binding=\"my:{0}\" style=\"WIDTH: 100%\" xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\">"
                                                + "<xsl:value-of select=\"my:{0}\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                                + "</span>"
                                                + "</td>"
                                                + "</tr>";

        public const string Number_View_Text = "<tr class=\"xdTableOffsetRow\">"
                                                    + "<td style=\"VERTICAL-ALIGN: top; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; PADDING-RIGHT: 5px\""
                                                        + " class=\"xdTableOffsetCellLabel\">"
                                                        + "<h4>"
                                                            + "<span class=\"xdlabel\">{1}</span>"
                                                        + "</h4>"
                                                    + "</td>"
                                                    + "<td style=\"VERTICAL-ALIGN: top; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; PADDING-LEFT: 5px; PADDING-RIGHT: 22px\""
                                                        + " class=\"xdTableOffsetCellComponent\">"
                                                        + " <span title=\"\" class=\"xdTextBox xdBehavior_Formatting\""
                                                              + " hideFocus=\"1\" contentEditable=\"true\" tabIndex=\"0\""
                                                              + " xd:xctname=\"PlainText\" xd:CtrlId=\"{0}38\""
                                                              + " xd:binding=\"my:{0}\""
                                                              + " xd:disableEditing=\"no\" xd:boundProp=\"xd:num\""
                                                              + " xd:datafmt=\"&quot;number&quot;,&quot;numDigits:auto;negativeOrder:1;&quot;\""
                                                              + " style=\"WIDTH: 100%\">"
                                                            + "<xsl:attribute name=\"xd:num\">"
                                                                + "<xsl:value-of"
                                                                        + " select=\"my:{0}\"/>"
                                                            + "</xsl:attribute>"
                                                            + "<xsl:choose>"
                                                                + "<xsl:when test=\"function-available('xdFormatting:formatString')\">"
                                                                    + "<xsl:value-of"
                                                                           + " select=\"xdFormatting:formatString(my:{0},&quot;number&quot;,&quot;numDigits:auto;negativeOrder:1;&quot;)\"/>"
                                                                + "</xsl:when>"
                                                                + "<xsl:otherwise>"
                                                                    + "<xsl:value-of"
                                                                            + " select=\"my:{0}\"/>"
                                                                + "</xsl:otherwise>"
                                                            + "</xsl:choose>"
                                                        + "</span>"
                                                    + "</td>"
                                                + "</tr>";

        public const string Currency_View_Text = "<tr class=\"xdTableOffsetRow\">"
                                                    + "<td style=\"VERTICAL-ALIGN: top; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; PADDING-RIGHT: 5px\""
                                                        + " class=\"xdTableOffsetCellLabel\">"
                                                        + "<h4>"
                                                            + "<span class=\"xdlabel\">{1}</span>"
                                                        + "</h4>"
                                                    + "</td>"
                                                    + "<td style=\"VERTICAL-ALIGN: top; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; PADDING-LEFT: 5px; PADDING-RIGHT: 22px\""
                                                        + " class=\"xdTableOffsetCellComponent\">"
                                                        + " <span title=\"\" class=\"xdTextBox xdBehavior_Formatting\""
                                                              + " hideFocus=\"1\" contentEditable=\"true\" tabIndex=\"0\""
                                                              + " xd:xctname=\"PlainText\" xd:CtrlId=\"{0}38\""
                                                              + " xd:binding=\"my:{0}\""
                                                              + " xd:disableEditing=\"no\" xd:boundProp=\"xd:num\""
                                                              + " xd:datafmt=\"&quot;currency&quot;,&quot;numDigits:auto;negativeOrder:0;positiveOrder:0;currencyLocale:1033;&quot;\""
                                                              + " style=\"WIDTH: 100%\">"
                                                            + "<xsl:attribute name=\"xd:num\">"
                                                                + "<xsl:value-of"
                                                                        + " select=\"my:{0}\"/>"
                                                            + "</xsl:attribute>"
                                                            + "<xsl:choose>"
                                                                + "<xsl:when test=\"function-available('xdFormatting:formatString')\">"
                                                                    + "<xsl:value-of"
                                                                           + " select=\"xdFormatting:formatString(my:{0},&quot;currency&quot;,&quot;numDigits:auto;negativeOrder:0;positiveOrder:0;currencyLocale:1033;&quot;)\"/>"
                                                                + "</xsl:when>"
                                                                + "<xsl:otherwise>"
                                                                    + "<xsl:value-of"
                                                                            + " select=\"my:{0}\"/>"
                                                                + "</xsl:otherwise>"
                                                            + "</xsl:choose>"
                                                        + "</span>"
                                                    + "</td>"
                                                + "</tr>";

        public const string MultiTextBox_View_Text = "<tr class=\"xdTableOffsetRow\">"
                                                            + "<td style=\"VERTICAL-ALIGN: top; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; PADDING-RIGHT: 5px\""
                                                                + " class=\"xdTableOffsetCellLabel\">"
                                                                + "<h4>"
                                                                    + "<span class=\"xdlabel\">{1}</span>"
                                                                + "</h4>"
                                                            + "</td>"
                                                            + "<td vAlign=\"top\" class=\"xdTableOffsetCellComponent\""
                                                                + " style=\"BORDER-BOTTOM: #a6c2b2 1pt solid; BORDER-LEFT: #a6c2b2 1pt solid; BORDER-TOP: #a6c2b2 1pt solid; BORDER-RIGHT: #a6c2b2 1pt solid\">"
                                                                + "<span hideFocus=\"1\" class=\"xdRichTextBox\" title=\"\" xd:xctname=\"RichText\""
                                                                        + " xd:CtrlId=\"CTRL2\" xd:binding=\"/my:{0}\" tabIndex=\"0\""
                                                                        + " style=\"WIDTH: 100%; HEIGHT: 50px\">"
                                                                    + "<xsl:copy-of select=\"my:{0}/node()\"/>"
                                                                + "</span>"
                                                            + "</td>"
                                                        + "</tr>";

        public const string Bool_Text = "<tr class=\"xdTableOffsetRow\">"
                                                + "<td vAlign=\"top\" class=\"xdTableOffsetCellLabel\">"
                                                + "<h4>{1}</h4>"
                                                + "</td>"
                                                + "<td vAlign=\"top\" class=\"xdTableOffsetCellComponent\"><input class=\"xdBehavior_Boolean\" title=\"\" type=\"checkbox\" tabIndex=\"0\" xd:xctname=\"CheckBox\" xd:CtrlId=\"CTRL2\" xd:binding=\"my:{0}\" xd:boundProp=\"xd:value\" xd:offValue=\"false\" xd:onValue=\"true\">"
                                                + "<xsl:attribute name=\"xd:value\">"
                                                + "<xsl:value-of select=\"my:Confidential\"/>"
                                                + "</xsl:attribute>"
                                                + "<xsl:if test=\"my:Confidential=&quot;true&quot;\">"
                                                + "<xsl:attribute name=\"CHECKED\">CHECKED</xsl:attribute>"
                                                + "</xsl:if>"
                                                + "</input>Confidential</td>"
                                                + "</tr>";

        public const string Boolean_Str = "<tr class=\"xdTableOffsetRow\">"
                                                + "<td vAlign=\"top\" class=\"xdTableOffsetCellLabel\">"
                                                + "<h4><span class=\"xdlabel\">{1}</span> </h4>"
                                                + "</td>"
                                                + "<td vAlign=\"top\" class=\"xdTableOffsetCellComponent\">"
                                                + "<div>"
                                                + "<input class=\"xdBehavior_Boolean\" title=\"\" type=\"checkbox\" tabIndex=\"0\" xd:binding=\"my:{0}\" xd:CtrlId=\"CTRL4\" xd:xctname=\"CheckBox\" xd:boundProp=\"xd:value\" xd:onValue=\"true\" xd:offValue=\"false\">"
                                                + "<xsl:attribute name=\"xd:value\">"
                                                + "<xsl:value-of select=\"my:{0}\" /> "
                                                + "</xsl:attribute>"
                                                + "<xsl:if test=\"my:{0}=&quot;true&quot;\">"
                                                + "<xsl:attribute name=\"CHECKED\">CHECKED</xsl:attribute>"
                                                + "</xsl:if>"
                                                + "</input>"
                                                + "</div>"
                                                + "</td>"
                                                + "</tr>";


        public const string Select_View_Str = "<tr style=\"MIN-HEIGHT: 31px\" class=\"xdTableOffsetRow\">" +
                                "<td class=\"xdTableOffsetCellLabel\" style=\"PADDING-BOTTOM: 4px;  PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">" +
                                    "<h4>" +
                                        "<span class=\"xdlabel\">{1}</span>" +
                                    "</h4>" +
                                "</td>" +
                                "<td class=\"xdTableOffsetCellComponent\" style=\"PADDING-BOTTOM: 4px; PADDING-LEFT: 5px;  VERTICAL-ALIGN: top; PADDING-TOP: 4px\">" +
                                    "<span class=\"xdlabel\"></span>" +
                                    "<font style=\"BACKGROUND-COLOR: #ffffff\"></font><span class=\"xdExpressionBox xdDataBindingUI\" title=\"\" tabIndex=\"-1\" xd:CtrlId=\"CTRL2\" xd:xctname=\"ExpressionBox\" xd:datafmt=\"&quot;number&quot;,&quot;numDigits:0;negativeOrder:1;&quot;\" xd:disableEditing=\"yes\" style=\"WIDTH: 100%\">" +
                                        "<xsl:choose>" +
                                            "<xsl:when test=\"function-available('xdFormatting:formatString')\">" +
                                                "<xsl:value-of select=\"xdFormatting:formatString(my:ID,&quot;number&quot;,&quot;numDigits:0;negativeOrder:1;&quot;)\"/>" +
                                            "</xsl:when>" +
                                            "<xsl:otherwise>" +
                                                "<xsl:value-of select=\"my:{0}\"/>" +
                                            "</xsl:otherwise>" +
                                        "</xsl:choose>" +
                                    "</span>" +
                                "</td>" +
                            "</tr>";

        //add for publish
        public const string Name_Folder_In_List = "testFld";

        public const string DateOnly_Text = "<tr class=\"xdTableOffsetRow\">"
                                                    + "<td class=\"xdTableOffsetCellLabel\""
                                                        + " style=\"PADDING-BOTTOM: 4px; PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                                        + "<h4>"
                                                            + "<span class=\"xdlabel\">{1}</span>"
                                                        + "</h4>"
                                                    + "</td>"
                                                    + "<td class=\"xdTableOffsetCellComponent\""
                                                        + " style=\"PADDING-BOTTOM: 4px; PADDING-LEFT: 5px; PADDING-RIGHT: 22px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                                        + "<div style=\"WIDTH: 100%\" class=\"xdDTPicker\" title=\"\" noWrap=\"1\""
                                                             + " xd:CtrlId=\"{0}_1\" xd:xctname=\"DTPicker\">"
                                                            + "<span hideFocus=\"1\""
                                                                  + " class=\"xdDTText xdBehavior_FormattingNoBUI\""
                                                                  + " contentEditable=\"true\" tabIndex=\"0\""
                                                                  + " xd:disableEditing=\"no\""
                                                                  + " xd:binding=\"my:{0}\""
                                                                  + " xd:xctname=\"DTPicker_DTText\" xd:boundProp=\"xd:num\""
                                                                  + " xd:datafmt=\"&quot;date&quot;,&quot;dateFormat:Short Date;&quot;\""
                                                                  + " xd:innerCtrl=\"_DTText\">"
                                                                + "<xsl:attribute name=\"xd:num\">"
                                                                    + "<xsl:value-of select=\"my:{0}\"/>"
                                                                + "</xsl:attribute>"
                                                                + "<xsl:choose>"
                                                                    + "<xsl:when test=\"function-available('xdFormatting:formatString')\">"
                                                                        + "<xsl:value-of select=\"xdFormatting:formatString(my:{0},&quot;date&quot;,&quot;dateFormat:Short Date;&quot;)\"/>"
                                                                    + "</xsl:when>"
                                                                    + "<xsl:otherwise>"
                                                                        + "<xsl:value-of select=\"my:{0}\"/>"
                                                                    + "</xsl:otherwise>"
                                                                + "</xsl:choose>"
                                                            + "</span>"
                                                            + "<button class=\"xdDTButton\" xd:xctname=\"DTPicker_DTButton\""
                                                                    + " xd:innerCtrl=\"_DTButton\" tabIndex=\"-1\">"
                                                                + "<img src=\"res://infopath.exe/calendar.gif\"/>"
                                                            + " </button>"
                                                        + "</div>"
                                                    + "</td>"
                                                + "</tr>";

        public const string DateTime_Text = "<tr class=\"xdTableOffsetRow\">"
                                          + "<td class=\"xdTableOffsetCellLabel\""
                                          + " style=\"PADDING-BOTTOM: 4px; PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                          + "<h4>"
                                          + "<span class=\"xdlabel\">{1}</span>"
                                          + "</h4>"
                                          + "</td>"
                                          + "<td vAlign=\"top\" class=\"xdTableOffsetCellLabel\">"
                                          + "<div style=\"WIDTH: 147px\" class=\"xdDTPicker\" title=\"\" noWrap=\"1\" xd:xctname=\"DTPicker\" xd:CtrlId=\"CTRL1\"><span hideFocus=\"1\" class=\"xdDTText xdBehavior_FormattingNoBUI\" contentEditable=\"true\" tabIndex=\"0\" xd:xctname=\"DTPicker_DTText\" xd:binding=\"my:{0}\" xd:datafmt=\"&quot;datetime&quot;,&quot;dateFormat:Short Date;timeFormat:none;&quot;\" xd:boundProp=\"xd:num\" xd:innerCtrl=\"_DTText\" xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\">"
                                          + "<xsl:attribute name=\"xd:num\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\">"
                                          + "<xsl:value-of select=\"my:{0}\"/>"
                                          + "</xsl:attribute>"
                                          + "<xsl:choose xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                          + "<xsl:when test=\"function-available('xdFormatting:formatString')\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                          + "<xsl:value-of select=\"xdFormatting:formatString(my:{0},&quot;datetime&quot;,&quot;dateFormat:Short Date;timeFormat:none;&quot;)\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                          + "</xsl:when>"
                                          + "<xsl:otherwise xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                            + "<xsl:value-of select=\"my:{0}\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                            + "</xsl:otherwise>"
                                            + "</xsl:choose>"
                                        + "</span>"
                                        + "<button class=\"xdDTButton\" xd:xctname=\"DTPicker_DTButton\" xd:innerCtrl=\"_DTButton\" tabIndex=\"0\" xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\">"
                                            + "<img src=\"res://infopath.exe/calendar.gif\"/>"
                                        + "</button>"
                                        + "</div><span hideFocus=\"1\" class=\"xdTextBox xdBehavior_Formatting\" title=\"\" contentEditable=\"true\" tabIndex=\"0\" xd:xctname=\"PlainText\" xd:CtrlId=\"CTRL1\" xd:binding=\"my:{0}\" xd:datafmt=\"&quot;datetime&quot;,&quot;dateFormat:none;&quot;\" xd:boundProp=\"xd:num\" style=\"WIDTH: 144px\">"
                                        + "<xsl:attribute name=\"xd:num\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                        + "<xsl:value-of select=\"my:{0}\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                        + "</xsl:attribute>"
                                        + "<xsl:choose xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                            + "<xsl:when test=\"function-available('xdFormatting:formatString')\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                            + "<xsl:value-of select=\"xdFormatting:formatString(my:{0},&quot;datetime&quot;,&quot;dateFormat:none;&quot;)\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                            + "</xsl:when>"
                                            + "<xsl:otherwise xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                            + "<xsl:value-of select=\"my:{0}\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                            + "</xsl:otherwise>"
                                        + "</xsl:choose>"
                                    + "</span>"
                                + "</td>"
                            + "</tr>";

        public const string UserType_Str = "<tr style=\"MIN-HEIGHT: 47px\" class=\"xdTableOffsetRow\">"
                                + "<td class=\"xdTableOffsetCellLabel\" style=\"PADDING-BOTTOM: 4px;  PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                + "<h4><span class=\"xdlabel\">{1}</span></h4>"
                                + "</td>"
                                + "<td class=\"xdTableOffsetCellComponent\" style=\"PADDING-BOTTOM: 4px; PADDING-LEFT: 5px;  VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                + "<span class=\"xdlabel\"></span>"
                                + "<font style=\"BACKGROUND-COLOR: #ffffff\">"
                                + "<object hideFocus=\"1\" style=\"WIDTH: 447px; HEIGHT: 23px\" class=\"xdActiveX\" classid=\"clsid:61e40d31-993d-4777-8fa0-19ca59b6d0bb\" tabIndex=\"0\""
                                + " tabStop=\"true\" xd:xctname=\"{{61e40d31-993d-4777-8fa0-19ca59b6d0bb}}\" xd:CtrlId=\"CTRL3\" xd:server=\"http://\""
                                + " xd:bindingType=\"xmlNode\" xd:bindingProperty=\"Value\" xd:boundProp=\"xd:inline\" xd:AllowMultiple=\"false\" xd:SearchPeopleOnly=\"true\" xd:SharePointGroup=\"0\" contentEditable=\"false\" xd:binding=\"my:{0}\">"
                                + "<xsl:if test=\"function-available('xdImage:getImageUrl')\">"
                                + "<xsl:attribute name=\"src\"><xsl:value-of select=\"xdImage:getImageUrl(my:{0})\"/></xsl:attribute>"
                                + "</xsl:if>"
                                + "<param NAME=\"ButtonFont\" VALUE=\"宋体,10,0,400,0,0,0\"/>"
                                + "<param NAME=\"ButtonText\" VALUE=\"\"/>"
                                + "<param NAME=\"DisplayNameXPath\" VALUE=\"pc:DisplayName\"/>"
                                + "<param NAME=\"ObjectIdXPath\" VALUE=\"pc:AccountId\"/>"
                                + "<param NAME=\"ObjectTypeXPath\" VALUE=\"pc:AccountType\"/>"
                                + "<param NAME=\"SiteUrlXPath\" VALUE=\"/Context/@siteUrl\"/>"
                                + "<param NAME=\"SiteUrlDataSource\" VALUE=\"Context\"/>"
                                + "<param NAME=\"NewNodeTemplate\" VALUE=\"&lt;pc:Person xmlns:pc=&quot;http://schemas.microsoft.com/office/infopath/2007/PartnerControls&quot;&gt;&#xA;"
                                + "	&lt;pc:DisplayName&gt;&lt;/pc:DisplayName&gt;&#xA;	&lt;pc:AccountId&gt;&lt;/pc:AccountId&gt;&#xA;	&lt;pc:AccountType&gt;&lt;/pc:AccountType&gt;&#xA;&lt;/pc:Person&gt;\"/>"
                                + "<param NAME=\"BackgroundColor\" VALUE=\"2147483653\"/>"
                                + "<param NAME=\"MaxLines\" VALUE=\"4\"/>"
                                + "<param NAME=\"Direction\" VALUE=\"0\"/>"
                                + "</object>"
                                + "</font>"
                                + "</td>"
                                + "</tr>";

        public const string Contants_Extensions = "<xsf:extensions xmlns:xsf=\"http://schemas.microsoft.com/office/infopath/2003/solutionDefinition\">"
                                                   + "<xsf:extension name=\"SolutionDefinitionExtensions\" xmlns:xsf=\"http://schemas.microsoft.com/office/infopath/2003/solutionDefinition\">"
                                                   + "<xsf2:solutionDefinition runtimeCompatibility=\"client server\" xmlns:xsf2=\"http://schemas.microsoft.com/office/infopath/2006/solutionDefinition/extensions\">"
                                                   + "<xsf2:offline openIfQueryFails=\"yes\" cacheQueries=\"yes\" xmlns:xsf2=\"http://schemas.microsoft.com/office/infopath/2006/solutionDefinition/extensions\"></xsf2:offline>"
                                                   + "<xsf2:server formLocale=\"zh-CN\" isPreSubmitPostBackEnabled=\"no\" isMobileEnabled=\"no\" xmlns:xsf2=\"http://schemas.microsoft.com/office/infopath/2006/solutionDefinition/extensions\"></xsf2:server>"
                                                   + "<xsf2:solutionPropertiesExtension branch=\"contentTypeTemplate\" xmlns:xsf2=\"http://schemas.microsoft.com/office/infopath/2006/solutionDefinition/extensions\">"
            //+ "<xsf2:contentTypeTemplate site=\"../../../testinfo\" path=\"testFld.xsn\" name=\"CustomerInfoList_Iitem_OrderInfoList_UserInfoCt\" description=\"填写此表单。\" browserEnable=\"yes\"></xsf2:contentTypeTemplate>"
                                                   + "<xsf2:contentTypeTemplate site=\"{0}\" path=\"{1}\" name=\"{2}\" description=\"Fill up this form。\" browserEnable=\"yes\" xmlns:xsf2=\"http://schemas.microsoft.com/office/infopath/2006/solutionDefinition/extensions\"></xsf2:contentTypeTemplate>"
                                                   + "</xsf2:solutionPropertiesExtension>"
                                                   + "</xsf2:solutionDefinition>"
                                                   + "<xsf3:solutionDefinition xmlns:xsf3=\"http://schemas.microsoft.com/office/infopath/2009/solutionDefinition/extensions\">"
                                                   + "<xsf3:baseUrl relativeUrlBase=\"{3}\" xmlns:xsf3=\"http://schemas.microsoft.com/office/infopath/2009/solutionDefinition/extensions\"/>";
        public const string Contants_Extensions_Complement = "</xsf3:solutionDefinition></xsf:extension>"
                                                  + "</xsf:extensions>";

        public const string DropdownString = "<tr style=\"MIN-HEIGHT: 31px\" class=\"xdTableOffsetRow\">"
                                + "<td class=\"xdTableOffsetCellLabel\" style=\"PADDING-BOTTOM: 4px;  PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                    + "<h4>"
                                        + "<span class=\"xdlabel\"></span>"
                                        + "<span class=\"xdlabel\">{1}</span>"
                                    + "</h4>"
                                + "</td>"
                                + "<td class=\"xdTableOffsetCellComponent\" style=\"PADDING-BOTTOM: 4px; PADDING-LEFT: 5px;  VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                    + "<span class=\"xdlabel\"></span>"
                                    + "<font style=\"BACKGROUND-COLOR: #ffffff\">"
                                        + "<select style=\"WIDTH: 100%\" class=\"xdComboBox xdBehavior_Select\" title=\"\" size=\"1\" xd:binding=\"my:{0}\" xd:CtrlId=\"{0}\" xd:xctname=\"dropdown\" xd:boundProp=\"value\" value=\"{3}\" tabIndex=\"0\">"
                                            + "<xsl:attribute name=\"value\">"
                                                + "<xsl:value-of select=\"my:{0}\"/>"
                                            + "</xsl:attribute>"
                                            + "<xsl:choose>"
                                                + "<xsl:when test=\"function-available('xdXDocument:GetDOM')\">"
                                                    + "<option/>"
                                                    + "<xsl:variable name=\"val\" select=\"my:{0}\"/>"
                                                    + "<xsl:if test=\"not(xdXDocument:GetDOM(&quot;{2}&quot;)/root/{0}/SharePointListChoice_RW[.=$val] or $val='')\">"
                                                        + "<option selected=\"selected\">"
                                                            + "<xsl:attribute name=\"value\">"
                                                                + "<xsl:value-of select=\"$val\"/>"
                                                            + "</xsl:attribute>"
                                                            + "<xsl:value-of select=\"$val\"/>"
                                                        + "</option>"
                                                    + "</xsl:if>"
                                                    + "<xsl:for-each select=\"xdXDocument:GetDOM(&quot;{2}&quot;)/root/{0}/SharePointListChoice_RW\">"
                                                        + "<option>"
                                                            + "<xsl:attribute name=\"value\">"
                                                                + "<xsl:value-of select=\".\"/>"
                                                            + "</xsl:attribute>"
                                                            + "<xsl:if test=\"$val=.\">"
                                                                + "<xsl:attribute name=\"selected\">selected</xsl:attribute>"
                                                            + "</xsl:if>"
                                                            + "<xsl:value-of select=\"@DisplayName\"/>"
                                                        + "</option>"
                                                    + "</xsl:for-each>"
                                                + "</xsl:when>"
                                                + "<xsl:otherwise>"
                                                    + "<option>"
                                                        + "<xsl:value-of select=\"my:{0}\"/>"
                                                    + "</option>"
                                                + "</xsl:otherwise>"
                                            + "</xsl:choose>"
                                        + "</select>"
                                    + "</font>"
                                + "</td>"
                            + "</tr>";

        public const string MultiDropdownString = "<tr class=\"xdTableOffsetRow\">"
            + "<td class=\"xdTableOffsetCellLabel\" style=\"PADDING-BOTTOM: 4px;  PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                + "<h4>"
                    + "<span class=\"xdlabel\">{1}</span>"
                + "</h4>"
            + "</td>"
            + "<td class=\"xdTableOffsetCellComponent\" style=\"PADDING-BOTTOM: 4px; PADDING-LEFT: 5px;  VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                + "<xsl:choose>"
                    + "<xsl:when test=\"function-available('ipApp:GetMajorVersion') and ipApp:GetMajorVersion() &gt;= 12\">"
                        + "<span style=\"TEXT-ALIGN: left; WIDTH: 100%; HEIGHT: 100px\"  class=\"xdMultiSelectList\" title=\"\" xd:CtrlId=\"{0}\" xd:xctname=\"multiselectlistbox\""
                        + " xd:boundProp=\"value\" tabIndex=\"-1\" xd:ref=\"my:{0}/my:{0}_1\">"
                            + "<xsl:variable name=\"values\"  select=\"my:{0}/my:{0}_1\"/>"
                            + "<xsl:for-each select=\"xdXDocument:GetDOM(&quot;OptionDataSourceConnection&quot;)/root/{0}/SharePointListChoice_RW\">"
                                + "<span class=\"xdMultiSelectListItem\">"
                                    + "<input type=\"checkbox\" xd:boundProp=\"xd:value\" xd:binding=\".\" xd:xctname=\"CheckBox\" tabIndex=\"0\">"
                                        + "<xsl:attribute name=\"xd:value\">"
                                            + "<xsl:value-of select=\".\"/>"
                                        + "</xsl:attribute>"
                                        + "<xsl:attribute name=\"xd:onValue\">"
                                            + "<xsl:value-of select=\".\"/>"
                                        + "</xsl:attribute>"
                                        + "<xsl:attribute name=\"title\">"
                                            + "<xsl:value-of select=\"@DisplayName\"/>"
                                        + "</xsl:attribute>"
                                        + "<xsl:if test=\".=$values\">"
                                            + "<xsl:attribute name=\"CHECKED\">"
                                                + "CHECKED"
                                            + "</xsl:attribute>"
                                        + "</xsl:if>"
                                    + "</input>"
                                    + "<xsl:value-of select=\"@DisplayName\"/>"
                                + "</span>"
                            + "</xsl:for-each>"
                            + "<xsl:variable name=\"options\"  select=\"xdXDocument:GetDOM(&quot;OptionDataSourceConnection&quot;)/root/{0}/SharePointListChoice_RW/.\"/>"
                            + "<xsl:for-each select=\"my:{0}/my:{0}_1[not(.=$options)]\">"
                                + "<xsl:if test=\"normalize-space(.)!=''\">"
                                    + "<span class=\"xdMultiSelectListItem\">"
                                        + "<input type=\"checkbox\" CHECKED=\"CHECKED\" xd:onValue=\"{{.}}\" xd:boundProp=\"xd:value\" xd:binding=\".\"  xd:xctname=\"CheckBox\" tabIndex=\"0\">"
                                            + "<xsl:attribute name=\"xd:value\">"
                                                + "<xsl:value-of select=\".\"/>"
                                            + "</xsl:attribute>"
                                            + "<xsl:attribute name=\"title\">"
                                                + "<xsl:value-of select=\".\"/>"
                                            + "</xsl:attribute>"
                                        + "</input>"
                                        + "<xsl:value-of select=\".\"/>"
                                    + "</span>"
                                + "</xsl:if>"
                            + "</xsl:for-each>"
                        + "</span>"
                    + "</xsl:when>"
                    + "<xsl:otherwise>"
                        + "<span class=\"xdRepeating\" xd:xctname=\"BulletedList\" title=\"\" xd:CtrlId=\"{0}\" xd:boundProp=\"value\" style=\"TEXT-ALIGN: left; WIDTH: 100%; HEIGHT: 100px; HEIGHT: auto;\">"
                            + "<ol style=\"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LIST-STYLE-TYPE: disc\">"
                                + "<xsl:for-each select=\"my:{0}/my:{0}_1\">"
                                    + "<li>"
                                        + "<span class=\"xdListItem\" hideFocus=\"1\" contentEditable=\"true\" xd:CtrlId=\"{0}\" xd:xctname=\"ListItem_Plain\""
                                              + " xd:binding=\".\" style=\"TEXT-ALIGN: left; WIDTH: 100%; HEIGHT: 100px; HEIGHT:auto; WIDTH: 100%; WHITE-SPACE: normal; WORD-WRAP: break-word;\" tabIndex=\"0\">"
                                            + "<xsl:value-of select=\".\"/>"
                                        + "</span>"
                                    + "</li>"
                                + "</xsl:for-each>"
                            + "</ol>"
                        + "</span>"
                    + "</xsl:otherwise>"
                + "</xsl:choose>"
            + "</td>"
        + "</tr>";

        public const string MultiDropdownString_Old = "<tr class=\"xdTableOffsetRow\">" 
            + "<td class=\"xdTableOffsetCellLabel\" style=\"PADDING-BOTTOM: 4px;  PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">" 
            + "<h4>" 
            + "<span class=\"xdlabel\">{1}</span>" 
            + "</h4>" 
            + "</td>" 
            + "<td class=\"xdTableOffsetCellComponent\" style=\"PADDING-BOTTOM: 4px; PADDING-LEFT: 5px;  VERTICAL-ALIGN: top; PADDING-TOP: 4px\">" 
            + "<xsl:choose>" 
            + "<xsl:when test=\"function-available('ipApp:GetMajorVersion') and ipApp:GetMajorVersion() &gt;= 12\">" 
            + "<span style=\"TEXT-ALIGN: left; WIDTH: 100%; HEIGHT: 100px\"  class=\"xdMultiSelectList\" title=\"\" xd:CtrlId=\"{0}\" xd:xctname=\"multiselectlistbox\"" 
            + " xd:boundProp=\"value\" tabIndex=\"-1\" xd:ref=\"my:{0}/my:{0}_1\">" 
            + "<xsl:variable name=\"values\"  select=\"my:{0}/my:{0}_1\"/>" 
            + "<xsl:for-each select=\"xdXDocument:GetDOM(&quot;OptionDataSourceConnection&quot;)/root/{0}/SharePointListChoice_RW\">" 
            + "<span class=\"xdMultiSelectListItem\">" 
            + "<input type=\"checkbox\" xd:boundProp=\"xd:value\" xd:binding=\".\" xd:xctname=\"CheckBox\" tabIndex=\"0\">" 
            + "<xsl:attribute name=\"xd:value\">" 
            + "<xsl:value-of select=\".\"/>" 
            + "</xsl:attribute>" 
            + "<xsl:attribute name=\"xd:onValue\">" 
            + "<xsl:value-of select=\".\"/>" 
            + "</xsl:attribute>" 
            + "<xsl:attribute name=\"title\">" 
            + "<xsl:value-of select=\"@DisplayName\"/>" 
            + "</xsl:attribute>" 
            + "<xsl:if test=\".=$values\">" 
            + "<xsl:attribute name=\"CHECKED\">" 
            + "CHECKED" 
            + "</xsl:attribute>" 
            + "</xsl:if>" 
            + "</input>" 
            + "<xsl:value-of select=\"@DisplayName\"/>" 
            + "</span>" 
            + "</xsl:for-each>" 
            + "<xsl:variable name=\"options\"  select=\"xdXDocument:GetDOM(&quot;OptionDataSourceConnection&quot;)/root/{0}/SharePointListChoice_RW/.\"/>" 
            + "<xsl:for-each select=\"my:{0}/my:{0}_1[not(.=$options)]\">" 
            + "<xsl:if test=\"normalize-space(.)!=''\">" 
            + "<span class=\"xdMultiSelectListItem\">" 
            + "<input type=\"checkbox\" CHECKED=\"CHECKED\" xd:onValue=\"{{.}}\" xd:boundProp=\"xd:value\" xd:binding=\".\"  xd:xctname=\"CheckBox\" tabIndex=\"0\">"
            + "<xsl:attribute name=\"xd:value\">" 
            + "<xsl:value-of select=\".\"/>" 
            + "</xsl:attribute>" 
            + "<xsl:attribute name=\"title\">"
            + "<xsl:value-of select=\".\"/>"
            + "</xsl:attribute>"
            + "</input>"
            + "<xsl:value-of select=\".\"/>"
            + "</span>"
            + "</xsl:if>" 
            + "</xsl:for-each>" 
            + "</span>" 
            + "</xsl:when>"
            + "<xsl:otherwise>"
            + "<span class=\"xdRepeating\" xd:xctname=\"BulletedList\" title=\"\" xd:CtrlId=\"{0}\" xd:boundProp=\"value\" style=\"TEXT-ALIGN: left; WIDTH: 100%; HEIGHT: 100px; HEIGHT: auto;\">" 
            + "<ol style=\"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LIST-STYLE-TYPE: disc\">" 
            + "<xsl:for-each select=\"my:{0}/my:{0}_1\">" 
            + "<li>" 
            + "<span class=\"xdListItem\" hideFocus=\"1\" contentEditable=\"true\" xd:CtrlId=\"{0}\" xd:xctname=\"ListItem_Plain\"" 
            + " xd:binding=\".\" style=\"TEXT-ALIGN: left; WIDTH: 100%; HEIGHT: 100px; HEIGHT:auto; WIDTH: 100%; WHITE-SPACE: normal; WORD-WRAP: break-word;\" tabIndex=\"0\">" 
            + "<xsl:value-of select=\".\"/>"
            + "</span>" 
            + "</li>" 
            + "</xsl:for-each>" 
            + "</ol>" 
            + "</span>"
            + "</xsl:otherwise>"
            + "</xsl:choose>"
            + "</td>"
            + "</tr>";

        public const string LookUpString = "<tr class=\"xdTableOffsetRow\">"
                + "<td class=\"xdTableOffsetCellLabel\" style=\"PADDING-BOTTOM: 4px; PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                    + "<h4><span class=\"xdlabel\">{1}</span></h4>"
                + "</td>"
                + "<td class=\"xdTableOffsetCellComponent\" style=\"PADDING-BOTTOM: 4px; PADDING-LEFT: 5px; PADDING-RIGHT: 22px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                    + "<select style=\"WIDTH: 100%\" class=\"xdComboBox xdBehavior_Select\""
                            + " title=\"\" size=\"1\" xd:binding=\"my:{0}\""
                            + " xd:CtrlId=\"CTRL22\" xd:xctname=\"dropdown\" xd:boundProp=\"value\" value=\"\" tabIndex=\"0\">"
                        + "<xsl:attribute name=\"value\">"
                            + "<xsl:value-of select=\"my:{0}\"/>"
                        + "</xsl:attribute>"
                        + "<xsl:choose>"
                            + "<xsl:when test=\"function-available('xdXDocument:GetDOM')\">"
                                + "<option/>"
                                + "<xsl:variable name=\"val\" select=\"my:{0}\"/>"
                                + "<xsl:if test=\"not(xdXDocument:GetDOM(&quot;{2}&quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:ID=$val] or $val='')\">"
                                    + "<option selected=\"selected\">"
                                        + "<xsl:attribute name=\"value\">"
                                            + "<xsl:value-of select=\"$val\"/>"
                                        + "</xsl:attribute>"
                                        + "<xsl:value-of select=\"$val\"/>"
                                    + "</option>"
                                + "</xsl:if>"
                                + "<xsl:for-each select=\"xdXDocument:GetDOM(&quot;{2}&quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW\">"
                                    + "<option>"
                                        + "<xsl:attribute name=\"value\">"
                                            + "<xsl:value-of select=\"d:ID\"/>"
                                        + "</xsl:attribute>"
                                        + "<xsl:if test=\"$val=d:ID\">"
                                            + "<xsl:attribute name=\"selected\">"
                                                + "selected"
                                            + "</xsl:attribute>"
                                        + "</xsl:if>"
                                        + "<xsl:value-of select=\"d:Title\"/>"
                                    + "</option>"
                                + "</xsl:for-each>"
                            + "</xsl:when>"
                            + "<xsl:otherwise>"
                                + "<option>"
                                    + "<xsl:value-of select=\"my:{0}\"/>"
                                + "</option>"
                            + "</xsl:otherwise>"
                        + "</xsl:choose>"
                    + "</select>"
                + "</td>"
            + "</tr>";

        public const string UrlString = "<tr class=\"xdTableOffsetRow\">"
                                                    + "<td class=\"xdTableOffsetCellLabel\" style=\"PADDING-BOTTOM: 4px;  PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                                        + "<h4>"
                                                            + "<span class=\"xdlabel\">{1}</span>"
                                                        + "</h4>"
                                                    + "</td>"
                                                    + "<td class=\"xdTableOffsetCellComponent\" "
                                                        + "style=\"PADDING-BOTTOM: 4px; PADDING-LEFT: 5px; PADDING-RIGHT: 22px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                                        + "<span class=\"xdHyperlinkBox xdBehavior_Formatting xdHyperlinkBoxClickable\" "
                                                              + "tabIndex=\"-1\" "
                                                              + "xd:binding=\"my:{0}\" "
                                                              + "xd:CtrlId=\"CTRL18\" xd:xctname=\"HyperlinkBox\" "
                                                              + "xd:boundProp=\"href\" xd:boundPropSecondary=\"displaytext\" "
                                                              + "xd:binding_secondary=\"my:{0}/@{0}_Description\" "
                                                              + "style=\"WIDTH: 100%; FONT-FAMILY: Tahoma; FONT-SIZE: 8pt\">"
                                                            + "<button class=\"xdHyperlinkBoxButtonClickable\" tabIndex=\"0\">"
                                                                + "<img style=\"vertical-align:bottom\" src=\"res://infopath.exe/hyperlinkbox.png\"/>"
                                                            + "</button>"
                                                            + "<span style=\"width:5px;\"/>"
                                                            + "<xsl:choose>"
                                                                + "<xsl:when test=\"string-length(my:{0})!=0\">"
                                                                    + "<A class=\"hyperlinkAnchor\" tabIndex=\"0\" style=\"\">"
                                                                        + "<xsl:attribute name=\"title\">"
                                                                            + "<xsl:value-of select=\"my:{0}\"/>"
                                                                        + "</xsl:attribute>"
                                                                        + "<xsl:attribute name=\"href\">"
                                                                            + "<xsl:value-of select=\"my:{0}\"/>"
                                                                        + "</xsl:attribute>"
                                                                        + "<xsl:choose>"
                                                                            + "<xsl:when test=\"string-length(my:{0}/@{0}_Description)=0\">"
                                                                                + "<xsl:value-of select=\"my:{0}\"/>"
                                                                            + "</xsl:when>"
                                                                            + "<xsl:otherwise>"
                                                                                + "<xsl:value-of select=\"my:{0}/@{0}_Description\"/>"
                                                                            + "</xsl:otherwise>"
                                                                        + "</xsl:choose>"
                                                                    + "</A>"
                                                                + "</xsl:when>"
                                                                + "<xsl:otherwise>Click here to insert a hyperlink"
                                                                + "</xsl:otherwise>"
                                                            + "</xsl:choose>"
                                                        + "</span>"
                                                    + "</td>"
                                                + "</tr>";

        public const string PictureString = "<tr class=\"xdTableOffsetRow\">"
            + "<td class=\"xdTableOffsetCellLabel\" style=\"PADDING-BOTTOM: 4px;  PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                + "<h4>"
                    + "<span class=\"xdlabel\">{1}</span>"
                + "</h4>"
            + "</td>"
            + "<td style=\"PADDING-RIGHT: 22px; PADDING-LEFT: 5px; PADDING-BOTTOM: 4px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\""
                + " class=\"xdTableOffsetCellComponent\">"
                + "<div>"
                    + "<img class=\"xdLinkedPicture\" hideFocus=\"1\" tabIndex=\"0\""
                            + " xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\""
                            + " xd:xctname=\"LinkedImage\" xd:CtrlId=\"CTRL18\""
                            + " xd:binding=\"my:{0}\""
                            + " xd:boundProp=\"src\" tabStop=\"true\""
                            + " xd:boundPropSecondary=\"displaytext\""
                            + " xd:binding_secondary=\"my:{0}\">"
                        + "<xsl:attribute xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" name=\"src\">"
                            + "<xsl:value-of select=\"my:{0}\"/>"
                        + "</xsl:attribute>"
                        + "<xsl:attribute xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" name=\"displaytext\">"
                            + "<xsl:value-of select=\"my:{0}/@{0}_Description\"/>"
                        + "</xsl:attribute>"
                        + "<xsl:attribute xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" name=\"alt\">"
                            + "<xsl:choose>"
                                + "<xsl:when test=\"string-length(my:{0}) &gt; 0\">"
                                    + "<xsl:value-of select=\"my:{0}/@{0}_Description\"/>"
                                + "</xsl:when>"
                                + "<xsl:otherwise>Click here to insert a picture"
                                + "</xsl:otherwise>"
                            + "</xsl:choose>"
                        + "</xsl:attribute>"
                    + "</img>"
                + "</div>"
            + "</td>"
        + "</tr>";

        public const string FormPrefix = "Form_";

        #region LookupForm Definition

        public const string LookupFormTableHead = "<tr style=\"MIN-HEIGHT: 31px\" class=\"xdTableOffsetRow\">"
                                                    + "<td class=\"xdTableOffsetCellLabel\""
                                                        + " style=\"PADDING-BOTTOM: 4px; PADDING-RIGHT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                                        + "<h4>"
                                                            + "<span class=\"xdlabel\">{0} - {1}</span>"
                                                        + "</h4>"
                                                    + "</td>"
                                                    + "<td class=\"xdTableOffsetCellComponent\""
                                                        + " style=\"PADDING-BOTTOM: 4px; PADDING-LEFT: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 4px\">"
                                                        + "<div>"
                                                            + "<span class=\"xdlabel\"></span>"
                                                        + "</div>"
                                                        + "<div>"
                                                            + "<span class=\"xdlabel\"></span>"
                                                        + "</div>"
                                                        + "<div>";

        public const string LookupFormTableEnd = "<div class=\"optionalPlaceholder\" xd:xmlToEdit=\"{0}_72\" tabIndex=\"0\""
                                                    + " xd:action=\"xCollection::insert\" style=\"WIDTH: 373px\">Insert item"
                                                + " </div>"
                                            + " </div>"
                                        + " </td>"
                                    + " </tr>";

        public const string TextBox_View_Text_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
                                                + "<span hideFocus=\"1\" class=\"xdTextBox\" tabIndex=\"0\" xd:xctname=\"PlainText\" xd:CtrlId=\"CTRL12\" xd:binding=\"my:{0}\" style=\"WIDTH: 100%\" xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\">"
                                                + "<xsl:value-of select=\"my:{0}\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                                + "</span>"
                                                + "</td>";

        public const string Number_View_Text_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
                                                        + " <span class=\"xdTextBox xdBehavior_Formatting\""
                                                              + " hideFocus=\"1\" contentEditable=\"true\" tabIndex=\"0\""
                                                              + " xd:xctname=\"PlainText\" xd:CtrlId=\"{0}32\""
                                                              + " xd:binding=\"my:{0}\""
                                                              + " xd:disableEditing=\"no\" xd:boundProp=\"xd:num\""
                                                              + " xd:datafmt=\"&quot;number&quot;,&quot;numDigits:auto;negativeOrder:1;&quot;\""
                                                              + " style=\"WIDTH: 100%\">"
                                                            + "<xsl:attribute name=\"xd:num\">"
                                                                + "<xsl:value-of"
                                                                        + " select=\"my:{0}\"/>"
                                                            + "</xsl:attribute>"
                                                            + "<xsl:choose>"
                                                                + "<xsl:when test=\"function-available('xdFormatting:formatString')\">"
                                                                    + "<xsl:value-of"
                                                                           + " select=\"xdFormatting:formatString(my:{0},&quot;number&quot;,&quot;numDigits:auto;negativeOrder:1;&quot;)\"/>"
                                                                + "</xsl:when>"
                                                                + "<xsl:otherwise>"
                                                                    + "<xsl:value-of"
                                                                            + " select=\"my:{0}\"/>"
                                                                + "</xsl:otherwise>"
                                                            + "</xsl:choose>"
                                                        + "</span>"
                                                    + "</td>";

        public const string Currency_View_Text_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
                                                        + " <span class=\"xdTextBox xdBehavior_Formatting\""
                                                              + " hideFocus=\"1\" contentEditable=\"true\" tabIndex=\"0\""
                                                              + " xd:xctname=\"PlainText\" xd:CtrlId=\"{0}32\""
                                                              + " xd:binding=\"my:{0}\""
                                                              + " xd:disableEditing=\"no\" xd:boundProp=\"xd:num\""
                                                              + " xd:datafmt=\"&quot;currency&quot;,&quot;numDigits:auto;negativeOrder:0;positiveOrder:0;currencyLocale:1033;&quot;\""
                                                              + " style=\"WIDTH: 100%\">"
                                                            + "<xsl:attribute name=\"xd:num\">"
                                                                + "<xsl:value-of"
                                                                        + " select=\"my:{0}\"/>"
                                                            + "</xsl:attribute>"
                                                            + "<xsl:choose>"
                                                                + "<xsl:when test=\"function-available('xdFormatting:formatString')\">"
                                                                    + "<xsl:value-of"
                                                                           + " select=\"xdFormatting:formatString(my:{0},&quot;currency&quot;,&quot;numDigits:auto;negativeOrder:0;positiveOrder:0;currencyLocale:1033;&quot;)\"/>"
                                                                + "</xsl:when>"
                                                                + "<xsl:otherwise>"
                                                                    + "<xsl:value-of"
                                                                            + " select=\"my:{0}\"/>"
                                                                + "</xsl:otherwise>"
                                                            + "</xsl:choose>"
                                                        + "</span>"
                                                    + "</td>";

        public const string MultiTextBox_View_Text_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
                                                                + "<span hideFocus=\"1\" class=\"xdRichTextBox\" title=\"\" xd:xctname=\"RichText\""
                                                                        + " xd:CtrlId=\"CTRL22\" xd:binding=\"my:{0}\" tabIndex=\"0\""
                                                                        + " style=\"WIDTH: 100%; HEIGHT: 50px\">"
                                                                    + "<xsl:copy-of select=\"my:{0}/node()\"/>"
                                                                + "</span>"
                                                            + "</td>";

        public const string Boolean_Str_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
                                                + "<div>"
                                                + "<input class=\"xdBehavior_Boolean\" title=\"\" type=\"checkbox\" tabIndex=\"0\" xd:binding=\"my:{0}\" xd:CtrlId=\"CTRL42\" xd:xctname=\"CheckBox\" xd:boundProp=\"xd:value\" xd:onValue=\"true\" xd:offValue=\"false\">"
                                                + "<xsl:attribute name=\"xd:value\">"
                                                + "<xsl:value-of select=\"my:{0}\" /> "
                                                + "</xsl:attribute>"
                                                + "<xsl:if test=\"my:{0}=&quot;true&quot;\">"
                                                + "<xsl:attribute name=\"CHECKED\">CHECKED</xsl:attribute>"
                                                + "</xsl:if>"
                                                + "</input>"
                                                + "</div>"
                                                + "</td>";

        public const string Select_View_Str_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">" +
                                    "<span class=\"xdlabel\"></span>" +
                                    "<font style=\"BACKGROUND-COLOR: #ffffff\"></font><span class=\"xdExpressionBox xdDataBindingUI\" title=\"\" tabIndex=\"-1\" xd:CtrlId=\"CTRL22\" xd:xctname=\"ExpressionBox\" xd:datafmt=\"&quot;number&quot;,&quot;numDigits:0;negativeOrder:1;&quot;\" xd:disableEditing=\"yes\" style=\"WIDTH: 100%\">" +
                                        "<xsl:choose>" +
                                            "<xsl:when test=\"function-available('xdFormatting:formatString')\">" +
                                                "<xsl:value-of select=\"xdFormatting:formatString(my:ID,&quot;number&quot;,&quot;numDigits:0;negativeOrder:1;&quot;)\"/>" +
                                            "</xsl:when>" +
                                            "<xsl:otherwise>" +
                                                "<xsl:value-of select=\"my:{0}\"/>" +
                                            "</xsl:otherwise>" +
                                        "</xsl:choose>" +
                                    "</span>" +
                                "</td>";

        public const string DateOnly_Text_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
                                                       + "<div style=\"WIDTH: 100%\" class=\"xdDTPicker\" title=\"\" noWrap=\"1\""
                                                             + " xd:CtrlId=\"{0}_12\" xd:xctname=\"DTPicker\">"
                                                            + "<span hideFocus=\"1\""
                                                                  + " class=\"xdDTText xdBehavior_FormattingNoBUI\""
                                                                  + " contentEditable=\"true\" tabIndex=\"0\""
                                                                  + " xd:disableEditing=\"no\""
                                                                  + " xd:binding=\"my:{0}\""
                                                                  + " xd:xctname=\"DTPicker_DTText\" xd:boundProp=\"xd:num\""
                                                                  + " xd:datafmt=\"&quot;date&quot;,&quot;dateFormat:Short Date;&quot;\""
                                                                  + " xd:innerCtrl=\"_DTText\">"
                                                                + "<xsl:attribute name=\"xd:num\">"
                                                                    + "<xsl:value-of select=\"my:{0}\"/>"
                                                                + "</xsl:attribute>"
                                                                + "<xsl:choose>"
                                                                    + "<xsl:when test=\"function-available('xdFormatting:formatString')\">"
                                                                        + "<xsl:value-of select=\"xdFormatting:formatString(my:{0},&quot;date&quot;,&quot;dateFormat:Short Date;&quot;)\"/>"
                                                                    + "</xsl:when>"
                                                                    + "<xsl:otherwise>"
                                                                        + "<xsl:value-of select=\"my:{0}\"/>"
                                                                    + "</xsl:otherwise>"
                                                                + "</xsl:choose>"
                                                            + "</span>"
                                                            + "<button class=\"xdDTButton\" xd:xctname=\"DTPicker_DTButton\""
                                                                    + " xd:innerCtrl=\"_DTButton\" tabIndex=\"-1\">"
                                                                + "<img src=\"res://infopath.exe/calendar.gif\"/>"
                                                            + " </button>"
                                                        + "</div>"
                                                    + "</td>";

        public const string DateTime_Text_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
                                          + "<div style=\"WIDTH: 147px\" class=\"xdDTPicker\" title=\"\" noWrap=\"1\" xd:xctname=\"DTPicker\" xd:CtrlId=\"CTRL12\"><span hideFocus=\"1\" class=\"xdDTText xdBehavior_FormattingNoBUI\" contentEditable=\"true\" tabIndex=\"0\" xd:xctname=\"DTPicker_DTText\" xd:binding=\"my:{0}\" xd:datafmt=\"&quot;datetime&quot;,&quot;dateFormat:Short Date;timeFormat:none;&quot;\" xd:boundProp=\"xd:num\" xd:innerCtrl=\"_DTText\" xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\">"
                                          + "<xsl:attribute name=\"xd:num\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\">"
                                          + "<xsl:value-of select=\"my:{0}\"/>"
                                          + "</xsl:attribute>"
                                          + "<xsl:choose xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                          + "<xsl:when test=\"function-available('xdFormatting:formatString')\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                          + "<xsl:value-of select=\"xdFormatting:formatString(my:{0},&quot;datetime&quot;,&quot;dateFormat:Short Date;timeFormat:none;&quot;)\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                          + "</xsl:when>"
                                          + "<xsl:otherwise xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                            + "<xsl:value-of select=\"my:{0}\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                            + "</xsl:otherwise>"
                                            + "</xsl:choose>"
                                        + "</span>"
                                        + "<button class=\"xdDTButton\" xd:xctname=\"DTPicker_DTButton\" xd:innerCtrl=\"_DTButton\" tabIndex=\"0\" xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\">"
                                            + "<img src=\"res://infopath.exe/calendar.gif\"/>"
                                        + "</button>"
                                        + "</div><span hideFocus=\"1\" class=\"xdTextBox xdBehavior_Formatting\" title=\"\" contentEditable=\"true\" tabIndex=\"0\" xd:xctname=\"PlainText\" xd:CtrlId=\"CTRL1\" xd:binding=\"my:{0}\" xd:datafmt=\"&quot;datetime&quot;,&quot;dateFormat:none;&quot;\" xd:boundProp=\"xd:num\" style=\"WIDTH: 144px\">"
                                        + "<xsl:attribute name=\"xd:num\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                        + "<xsl:value-of select=\"my:{0}\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                        + "</xsl:attribute>"
                                        + "<xsl:choose xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                            + "<xsl:when test=\"function-available('xdFormatting:formatString')\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                            + "<xsl:value-of select=\"xdFormatting:formatString(my:{0},&quot;datetime&quot;,&quot;dateFormat:none;&quot;)\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                            + "</xsl:when>"
                                            + "<xsl:otherwise xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">"
                                            + "<xsl:value-of select=\"my:{0}\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"/>"
                                            + "</xsl:otherwise>"
                                        + "</xsl:choose>"
                                    + "</span>"
                                + "</td>";

        public const string UserType_Str_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
                                + "<span class=\"xdlabel\"></span>"
                                + "<font style=\"BACKGROUND-COLOR: #ffffff\">"
                                + "<object hideFocus=\"1\" style=\"WIDTH: 447px; HEIGHT: 23px\" class=\"xdActiveX\" classid=\"clsid:61e40d31-993d-4777-8fa0-19ca59b6d0bb\" tabIndex=\"0\""
                                + " tabStop=\"true\" xd:xctname=\"{{61e40d31-993d-4777-8fa0-19ca59b6d0bb}}\" xd:CtrlId=\"CTRL32\" xd:server=\"http://\""
                                + " xd:bindingType=\"xmlNode\" xd:bindingProperty=\"Value\" xd:boundProp=\"xd:inline\" xd:AllowMultiple=\"false\" xd:SearchPeopleOnly=\"true\" xd:SharePointGroup=\"0\" contentEditable=\"false\" xd:binding=\"my:{0}\">"
                                + "<xsl:if test=\"function-available('xdImage:getImageUrl')\">"
                                + "<xsl:attribute name=\"src\"><xsl:value-of select=\"xdImage:getImageUrl(my:{0})\"/></xsl:attribute>"
                                + "</xsl:if>"
                                + "<param NAME=\"ButtonFont\" VALUE=\"宋体,10,0,400,0,0,0\"/>"
                                + "<param NAME=\"ButtonText\" VALUE=\"\"/>"
                                + "<param NAME=\"DisplayNameXPath\" VALUE=\"pc:DisplayName\"/>"
                                + "<param NAME=\"ObjectIdXPath\" VALUE=\"pc:AccountId\"/>"
                                + "<param NAME=\"ObjectTypeXPath\" VALUE=\"pc:AccountType\"/>"
                                + "<param NAME=\"SiteUrlXPath\" VALUE=\"/Context/@siteUrl\"/>"
                                + "<param NAME=\"SiteUrlDataSource\" VALUE=\"Context\"/>"
                                + "<param NAME=\"NewNodeTemplate\" VALUE=\"&lt;pc:Person xmlns:pc=&quot;http://schemas.microsoft.com/office/infopath/2007/PartnerControls&quot;&gt;&#xA;"
                                + "	&lt;pc:DisplayName&gt;&lt;/pc:DisplayName&gt;&#xA;	&lt;pc:AccountId&gt;&lt;/pc:AccountId&gt;&#xA;	&lt;pc:AccountType&gt;&lt;/pc:AccountType&gt;&#xA;&lt;/pc:Person&gt;\"/>"
                                + "<param NAME=\"BackgroundColor\" VALUE=\"2147483653\"/>"
                                + "<param NAME=\"MaxLines\" VALUE=\"4\"/>"
                                + "<param NAME=\"Direction\" VALUE=\"0\"/>"
                                + "</object>"
                                + "</font>"
                                + "</td>";

        public const string DropdownString_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
                                     + "<span class=\"xdlabel\"></span>"
                                    + "<font style=\"BACKGROUND-COLOR: #ffffff\">"
                                        + "<select style=\"WIDTH: 100%\" class=\"xdComboBox xdBehavior_Select\" title=\"\" size=\"1\" xd:binding=\"my:{0}\" xd:CtrlId=\"{1}2\" xd:xctname=\"dropdown\" xd:boundProp=\"value\" value=\"{3}\" tabIndex=\"0\">"
                                            + "<xsl:attribute name=\"value\">"
                                                + "<xsl:value-of select=\"my:{0}\"/>"
                                            + "</xsl:attribute>"
                                            + "<xsl:choose>"
                                                + "<xsl:when test=\"function-available('xdXDocument:GetDOM')\">"
                                                    + "<option/>"
                                                    + "<xsl:variable name=\"val\" select=\"my:{0}\"/>"
                                                    + "<xsl:if test=\"not(xdXDocument:GetDOM(&quot;{2}&quot;)/root/{0}/SharePointListChoice_RW[.=$val] or $val='')\">"
                                                        + "<option selected=\"selected\">"
                                                            + "<xsl:attribute name=\"value\">"
                                                                + "<xsl:value-of select=\"$val\"/>"
                                                            + "</xsl:attribute>"
                                                            + "<xsl:value-of select=\"$val\"/>"
                                                        + "</option>"
                                                    + "</xsl:if>"
                                                    + "<xsl:for-each select=\"xdXDocument:GetDOM(&quot;{2}&quot;)/root/{0}/SharePointListChoice_RW\">"
                                                        + "<option>"
                                                            + "<xsl:attribute name=\"value\">"
                                                                + "<xsl:value-of select=\".\"/>"
                                                            + "</xsl:attribute>"
                                                            + "<xsl:if test=\"$val=.\">"
                                                                + "<xsl:attribute name=\"selected\">selected</xsl:attribute>"
                                                            + "</xsl:if>"
                                                            + "<xsl:value-of select=\"@DisplayName\"/>"
                                                        + "</option>"
                                                    + "</xsl:for-each>"
                                                + "</xsl:when>"
                                                + "<xsl:otherwise>"
                                                    + "<option>"
                                                        + "<xsl:value-of select=\"my:{0}\"/>"
                                                    + "</option>"
                                                + "</xsl:otherwise>"
                                            + "</xsl:choose>"
                                        + "</select>"
                                    + "</font>"
                                + "</td>";

        public const string MultiDropdownString_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
              + "<xsl:choose>"
                    + "<xsl:when test=\"function-available('ipApp:GetMajorVersion') and ipApp:GetMajorVersion() &gt;= 12\">"
                        + "<span style=\"TEXT-ALIGN: left; WIDTH: 100%; HEIGHT: 100px\"  class=\"xdMultiSelectList\" title=\"\" xd:CtrlId=\"{0}\" xd:xctname=\"multiselectlistbox\""
                        + " xd:boundProp=\"value\" tabIndex=\"-1\" xd:ref=\"my:{0}/my:{0}_1\">"
                            + "<xsl:variable name=\"values\"  select=\"my:{0}/my:{0}_1\"/>"
                            + "<xsl:for-each select=\"xdXDocument:GetDOM(&quot;OptionDataSourceConnection&quot;)/root/{0}/SharePointListChoice_RW\">"
                                + "<span class=\"xdMultiSelectListItem\">"
                                    + "<input type=\"checkbox\" xd:boundProp=\"xd:value\" xd:binding=\".\" xd:xctname=\"CheckBox\" tabIndex=\"0\">"
                                        + "<xsl:attribute name=\"xd:value\">"
                                            + "<xsl:value-of select=\".\"/>"
                                        + "</xsl:attribute>"
                                        + "<xsl:attribute name=\"xd:onValue\">"
                                            + "<xsl:value-of select=\".\"/>"
                                        + "</xsl:attribute>"
                                        + "<xsl:attribute name=\"title\">"
                                            + "<xsl:value-of select=\"@DisplayName\"/>"
                                        + "</xsl:attribute>"
                                        + "<xsl:if test=\".=$values\">"
                                            + "<xsl:attribute name=\"CHECKED\">"
                                                + "CHECKED"
                                            + "</xsl:attribute>"
                                        + "</xsl:if>"
                                    + "</input>"
                                    + "<xsl:value-of select=\"@DisplayName\"/>"
                                + "</span>"
                            + "</xsl:for-each>"
                            + "<xsl:variable name=\"options\"  select=\"xdXDocument:GetDOM(&quot;OptionDataSourceConnection&quot;)/root/{0}/SharePointListChoice_RW/.\"/>"
                            + "<xsl:for-each select=\"my:{0}/my:{0}_1[not(.=$options)]\">"
                                + "<xsl:if test=\"normalize-space(.)!=''\">"
                                    + "<span class=\"xdMultiSelectListItem\">"
                                        + "<input type=\"checkbox\" CHECKED=\"CHECKED\" xd:onValue=\"{{.}}\" xd:boundProp=\"xd:value\" xd:binding=\".\"  xd:xctname=\"CheckBox\" tabIndex=\"0\">"
                                            + "<xsl:attribute name=\"xd:value\">"
                                                + "<xsl:value-of select=\".\"/>"
                                            + "</xsl:attribute>"
                                            + "<xsl:attribute name=\"title\">"
                                                + "<xsl:value-of select=\".\"/>"
                                            + "</xsl:attribute>"
                                        + "</input>"
                                        + "<xsl:value-of select=\".\"/>"
                                    + "</span>"
                                + "</xsl:if>"
                            + "</xsl:for-each>"
                        + "</span>"
                    + "</xsl:when>"
                    + "<xsl:otherwise>"
                        + "<span class=\"xdRepeating\" xd:xctname=\"BulletedList\" title=\"\" xd:CtrlId=\"{0}\" xd:boundProp=\"value\" style=\"TEXT-ALIGN: left; WIDTH: 100%; HEIGHT: 100px; HEIGHT: auto;\">"
                            + "<ol style=\"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LIST-STYLE-TYPE: disc\">"
                                + "<xsl:for-each select=\"my:{0}/my:{0}_1\">"
                                    + "<li>"
                                        + "<span class=\"xdListItem\" hideFocus=\"1\" contentEditable=\"true\" xd:CtrlId=\"{0}\" xd:xctname=\"ListItem_Plain\""
                                              + " xd:binding=\".\" style=\"TEXT-ALIGN: left; WIDTH: 100%; HEIGHT: 100px; HEIGHT:auto; WIDTH: 100%; WHITE-SPACE: normal; WORD-WRAP: break-word;\" tabIndex=\"0\">"
                                            + "<xsl:value-of select=\".\"/>"
                                        + "</span>"
                                    + "</li>"
                                + "</xsl:for-each>"
                            + "</ol>"
                        + "</span>"
                    + "</xsl:otherwise>"
                + "</xsl:choose>"
            + "</td>";

        public const string UrlString_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
                                             + "<span class=\"xdHyperlinkBox xdBehavior_Formatting xdHyperlinkBoxClickable\" "
                                                              + "tabIndex=\"-1\" "
                                                              + "xd:binding=\"my:{0}\" "
                                                              + "xd:CtrlId=\"CTRL18\" xd:xctname=\"HyperlinkBox\" "
                                                              + "xd:boundProp=\"href\" xd:boundPropSecondary=\"displaytext\" "
                                                              + "xd:binding_secondary=\"my:{0}/@{0}_Description\" "
                                                              + "style=\"WIDTH: 100%; FONT-FAMILY: Tahoma; FONT-SIZE: 8pt\">"
                                                            + "<button class=\"xdHyperlinkBoxButtonClickable\" tabIndex=\"0\">"
                                                                + "<img style=\"vertical-align:bottom\" src=\"res://infopath.exe/hyperlinkbox.png\"/>"
                                                            + "</button>"
                                                            + "<span style=\"width:5px;\"/>"
                                                            + "<xsl:choose>"
                                                                + "<xsl:when test=\"string-length(my:{0})!=0\">"
                                                                    + "<A class=\"hyperlinkAnchor\" tabIndex=\"0\" style=\"\">"
                                                                        + "<xsl:attribute name=\"title\">"
                                                                            + "<xsl:value-of select=\"my:{0}\"/>"
                                                                        + "</xsl:attribute>"
                                                                        + "<xsl:attribute name=\"href\">"
                                                                            + "<xsl:value-of select=\"my:{0}\"/>"
                                                                        + "</xsl:attribute>"
                                                                        + "<xsl:choose>"
                                                                            + "<xsl:when test=\"string-length(my:{0}/@{0}_Description)=0\">"
                                                                                + "<xsl:value-of select=\"my:{0}\"/>"
                                                                            + "</xsl:when>"
                                                                            + "<xsl:otherwise>"
                                                                                + "<xsl:value-of select=\"my:{0}/@{0}_Description\"/>"
                                                                            + "</xsl:otherwise>"
                                                                        + "</xsl:choose>"
                                                                    + "</A>"
                                                                + "</xsl:when>"
                                                                + "<xsl:otherwise>Click here to insert a hyperlink"
                                                                + "</xsl:otherwise>"
                                                            + "</xsl:choose>"
                                                        + "</span>"
                                                    + "</td>";

        public const string PictureString_lkp = "<td style=\"BORDER-LEFT: medium none; PADDING-BOTTOM: 1px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-RIGHT: medium none; PADDING-TOP: 1px\">"
                + "<div>"
                    + "<img class=\"xdLinkedPicture\" hideFocus=\"1\" tabIndex=\"0\""
                            + " xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\""
                            + " xd:xctname=\"LinkedImage\" xd:CtrlId=\"CTRL18\""
                            + " xd:binding=\"my:{0}\""
                            + " xd:boundProp=\"src\" tabStop=\"true\""
                            + " xd:boundPropSecondary=\"displaytext\""
                            + " xd:binding_secondary=\"my:{0}\">"
                        + "<xsl:attribute xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" name=\"src\">"
                            + "<xsl:value-of select=\"my:{0}\"/>"
                        + "</xsl:attribute>"
                        + "<xsl:attribute xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" name=\"displaytext\">"
                            + "<xsl:value-of select=\"my:{0}/@{0}_Description\"/>"
                        + "</xsl:attribute>"
                        + "<xsl:attribute xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" name=\"alt\">"
                            + "<xsl:choose>"
                                + "<xsl:when test=\"string-length(my:{0}) &gt; 0\">"
                                    + "<xsl:value-of select=\"my:{0}/@{0}_Description\"/>"
                                + "</xsl:when>"
                                + "<xsl:otherwise>Click here to insert a picture"
                                + "</xsl:otherwise>"
                            + "</xsl:choose>"
                        + "</xsl:attribute>"
                    + "</img>"
                + "</div>"
            + "</td>";

        #endregion
    }
}